import os
class User_mana():
    def useradd(self, name):
        os.system(f"useradd {name}")

class A(User_mana):
	def get_uid(name):
		os.system(f"id -u {name} ")
	def get_gid(name):
		os.system(f"id -g {name} ")	
	def get_shell(name):
		os.system(f"grep {name} /etc/passwd|awk -F : '{print $NF}'")	
	def mod_uid(name,uid):
		os.system(f"usermod -u {name} {uid} ")
	def mod_gid(name,id):
		os.system(f"groupmod -g {name} {gid} ")

class B(User_mana):
	def del_user(name):
		os.system(f"userdel {name}")
	def del_group(name):
		os.system(f"groupdel {name}")

class C(A,B):
	def add_group(name):
		os.system(f"groupadd {name}")
	def mod_gid(name,gid,username):
		os.system(f"usermod -g {gid} {name}  {username}") 
	
class UserSystemError(Exception):
	def __str__(self,name):
		UserSystemError	
